package cn.ilikes.tools.hbase.jpa.metadatas.sub.configs;

import java.util.Properties;

import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
public class Indexfactory {

	public enum IndexType {
		lucene, hadoop
	}

	private String type;

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	/**
	 * persistenceUnitName
	 */
	private String name;

	private Properties properties;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Properties getProperties() {
		return properties;
	}

	public void setProperties(Properties properties) {
		this.properties = properties;
	}

	public IndexType getIndexType() {
		IndexType indexType = IndexType.valueOf(type);
		return indexType;
	}
}
